
import {defineStore} from "pinia";
import {ref} from "vue";
export const myPinia=defineStore('myPinia',()=>{
    const num=ref(10);
    function  add(count){
        num.value+=count;
    }
    return{
        num,add
    }
},{ persist: true})